#include "form2.h"
#include "ui_form2.h"
#include <QDirModel>
#include <QTreeView>

Form2::Form2(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::Form2)
{
    ui->setupUi(this);
    model = new QFileSystemModel(this);
    ui->treeView->setModel(model);
    model->setRootPath("sPath");

    model->setFilter(QDir::Files| QDir::AllDirs);
}

Form2::~Form2()
{
    delete ui;
}

void Form2::on_pushButton_2_clicked()
{

}

void Form2::on_pushButton_clicked()
{

}

void Form2::on_pushButton_3_clicked()
{

}
